package com.liusand.web.service.impl;

import com.liusand.web.mapper.BlogMapper;
import com.liusand.web.service.BlogService;
import com.liusand.xo.pojo.Blog;
import com.liusand.xo.pojo.Category;
import com.liusand.xo.vo.BlogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LiuSha
 */
@Service
public class BlogServiceImpl implements BlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<BlogVO> findAll(String categoryId) {
        return blogMapper.findAll(categoryId);
    }

}
